package com.java.controller;

import com.java.enity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController2 {
    @Resource
    private User user;

    public void PrintUser2(){
        System.out.println(user);
    }

}
